#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>
#include <QDateTime>
#include <QNetworkAccessManager>
#include <QNetworkRequest>
#include <QNetworkReply>
#include<QFile>
#include <QMap>
#include<QMessageBox>
QT_BEGIN_NAMESPACE
namespace Ui { class MainWindow; }
QT_END_NAMESPACE

class MainWindow : public QMainWindow
{
    Q_OBJECT

public:
    MainWindow(QWidget *parent = nullptr);
    ~MainWindow();

private slots:
    void on_pushButton_clicked();
    void receiveReply(QNetworkReply *reply);
    void on_checkBox_remenber_stateChanged(int arg1);

    void on_lineEdit_name_editingFinished();

    void on_lineEdit_pwd_editingFinished();

    void on_comboBox_method_currentTextChanged(const QString &arg1);

private:
    Ui::MainWindow *ui;
    QNetworkAccessManager *manager;
    QMap<QString,QString> user;
    QString ac;
    bool connection;
    void saveData();
};
#endif // MAINWINDOW_H
